[PATCH] llvmGen: Align objects in the data section
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Mon, 27 Nov 2023 11:34:47 +0000 (12:34 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 19 Feb 2024 16:12:25 +0000 (17:12 +0100)
commit1e08da37c6544de1951ea0d90a9cf609070defe2
tree49229067a5ae97c9f3abfc7ef2d5f2b867942a41
parente7c3d94ac4c89e62a4e9d88fe68ba5b31788a4a0
[PATCH] llvmGen: Align objects in the data section

Objects in the data section may be referenced via tagged pointers.
Thus, align those objects to a 4- or 8-byte boundary for 32- or 64-bit
platforms, respectively.  Note, this may need to be reconsidered if
objects with a greater natural alignment requirement are emitted as e.g.
128-bit atomics.

Fixes #24163.

Gbp-Pq: Name dfe1c3540e4b519b62b862b5966dfec5cae9ece1.patch
compiler/GHC/CmmToLlvm/Data.hs